package io.renren.utils;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;


/**
 * @Description: 分页
 * @Author: alan
 * @Date: 2019/6/11 10:44 AM
 */
@Data
public class Pagination<T> {

    private final static String ASC = "ASC";
    /**
     * 当前页码
     */
    private int page;
    /**
     * 每页条数
     */
    private int size;
    /**
     * 排序字段
     */
    private String fields;
    /**
     * 排序方式
     */
    private String order;


    public Page<T> getIPage() {
        Page page = new Page<>(this.page - 1, this.size);
       
        return page;
    }
}
